/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package co.com.javeriana.aes.oms.ejb.orders.dao;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Juan
 */
public class TopFiveDAO {

    /**
     * Constructor por defecto de la clase
     */
    public TopFiveDAO() {
    }
 
    /**
     * Metodo que permite retornar el Top 5 de productos dado un ID producto
     * @param idProduct Identificador del Producto
     * @return ArrayList of ID's products the TopFive order by count
     */
    public List<Integer> getTopFiveProducts(int idProduct)
    {
        TopDAO dao = new TopDAO();
        List<Integer> products = new ArrayList<Integer>();
        products = dao.getTopFiveProducts(idProduct);
        return products;
    }
}
